<?php

defined("_ARKN_EXEC") or exit("no no, mr. superman no here");

/*
function customErrorHandler($errno, $errstr, $errfile, $errline) {
	$customErrorLogger = Logger::getLogger("customErrorLogger");
	$customErrorLogger->error("Error occured at line [ " . $errline . " ] " . $errfile . " --- " . $errstr);
	header("Location: " . ROOT_ADDRESS . "/error.html");
    return true;
}
*/

function customErrorHandler($errno, $errstr, $errfile, $errline) {
	print_r($_SESSION);
	print("Number: " . $errno . "<br/><br/>" . 
			"File: " . $errfile . "<br/><br/>" .
			"Line: " . $errline . "<br/><br/>" .
			"Message: " . $errstr);
    return true;
}

set_error_handler("customErrorHandler", E_ALL);

?>